//
//  HomeNewsCollectionViewCell.m
//  share_business
//
//  Created by 吴于凌 on 2017/9/2.
//  Copyright © 2017年 wyl. All rights reserved.
//

#import "HomeNewsCollectionViewCell.h"


@interface HomeNewsCollectionViewCell ()


@property(nonatomic ,strong)UIImageView *imageView;
@property(nonatomic ,strong)UILabel *label;


@end

@implementation HomeNewsCollectionViewCell

-(void)setUpView {
    UIView *bgView = [[UIView alloc]init];
    bgView.backgroundColor = [UIColor whiteColor];
    bgView.frame = CGRectMake(10, 10, APPWIDTH-20, self.height - 20);
    [bgView setBorder:1 cornerRadius:0];
    [bgView setShadow];
    
    _imageView = [BSWidget commonImageViewWithFrame:CGRectMake(15, 0, 60, 35) image:ImageNamed(@"home_new_header_img")];
    _imageView.centerY = bgView.height / 2 ;
    [bgView addSubview:_imageView];
    
    UIView *line  = [[UIView alloc]initWithFrame:CGRectMake(_imageView.maxX+ 10, 10, 1, 30)];
    line.backgroundColor = [UIColor colorWithHexString:COLOR_DARK_GRAY];
    line.centerY = bgView.height /2 ;
    [bgView addSubview:line];
    
    _label = [BSWidget commonLableWithFrame:CGRectMake(line.maxX+10, 0, APPWIDTH - 20 - _imageView.maxY - 60, bgView.height) text:@"这里是最新的系统消息，点击后打开消息详情这里是最新的系统消息，点击后打开消息详情" color:RGBA(51, 51, 51, 1) font:14];
    _label.numberOfLines =  2 ;
    _label.textAlignment =NSTextAlignmentCenter ;
    _label.textColor = RGBA(51, 51, 51, 1);
    [bgView addSubview:_label];
    [self addSubview:bgView];
}


@end
